<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Sample title</title>
    <meta name="layout" content="main" />
  </head>
  <body>
      <div id="pageBody">
          <h1>Payment</h1>

          ${flash.message}

          <br/><br/>
          
              <g:form name="PaymentForm" action="pay">
          Total cost: $${pay}
      <br/>    <input type="hidden" name="price" value="${pay}"/><br/>
          <input type="hidden" name="product" value="${products}"/><br/>
          Delivery address: <input type ="text" name="address"/><br/>
          Delivery date:     <select name="dobDay">
                  <% for(i=1;i<32;i++){ %>
                  <option value="${i}">${i}</option>
                  <% } %>
              </select>
              <select name="dobMonth">
                <% for(i=1;i<13;i++){ %>
                  <option value="${i}">${i}</option>
                <% } %>
              </select>
              <select name="dobYear">
                <% for(i=2012;i>1900;i--){ %>
                  <option value="${i}">${i}</option>
                <% } %>
              </select>
          <br/>
          <input type="submit"/>
</g:form>
      </div>
  </body>
</html>